import request from '@/config/axios'

export interface DirawingMessageVO {
  ticketId: number
  dictTaskType: number
  noticeTitle: string
  noticeContent: string
  creatorName: string
  updaterName: string
}

// 查询技术管理-图纸制作-消息通知列表
export const getDirawingMessagePage = async (params) => {
  return await request.get({ url: `/technology/dirawing-message/page`, params })
}

// 查询技术管理-图纸制作-消息通知详情
export const getDirawingMessage = async (id: number) => {
  return await request.get({ url: `/technology/dirawing-message/get?id=` + id })
}

// 新增技术管理-图纸制作-消息通知
export const createDirawingMessage = async (data: DirawingMessageVO) => {
  return await request.post({ url: `/technology/dirawing-message/create`, data })
}

// 修改技术管理-图纸制作-消息通知
export const updateDirawingMessage = async (data: DirawingMessageVO) => {
  return await request.put({ url: `/technology/dirawing-message/update`, data })
}

// 删除技术管理-图纸制作-消息通知
export const deleteDirawingMessage = async (id: number) => {
  return await request.delete({ url: `/technology/dirawing-message/delete?id=` + id })
}

// 导出技术管理-图纸制作-消息通知 Excel
export const exportDirawingMessage = async (params) => {
  return await request.download({ url: `/technology/dirawing-message/export-excel`, params })
}
